package com.nfit.shopmodel.vo.product;


import com.alibaba.excel.annotation.ExcelProperty;
import com.nfit.shopmodel.converter.LongConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryExcelVo {
	/**
	 * 在Excel表格中对应的列标题为“id”，且位于第一列（index为0）
	 */
	@ExcelProperty(value = "id" ,index = 1,converter = LongConverter.class)
	private Long id;

	@ExcelProperty(value = "名称" ,index = 2)
	private String name;

	@ExcelProperty(value = "图片url" ,index = 3)
	private String imageUrl ;

	@ExcelProperty(value = "上级id",index = 4,converter = LongConverter.class)
	private Long parentId;

	@ExcelProperty(value = "状态" ,index = 5)
	private Integer status;

	@ExcelProperty(value = "排序" ,index = 6)
	private Integer orderNum;

}